﻿using SqlSugar;
using System.ComponentModel.DataAnnotations;

namespace Process.API.DTOs
{
    public class ProductionProcessTableDto
    {
        /// <summary>
        /// 生产工单工序主键
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]//数据库是自增才配自增 
        [Key]
        public int ProductionProcessId { get; set; }
        /// <summary>
        /// 工序(1是第一步工序、
        ///2是第二步工序、
        ///3是第三步工序、
        ///4是第四步工序)
        /// </summary>
        public int ProcessNumber { get; set; }
        /// <summary>
        /// 生产工单ID
        /// </summary>
        public int ProductionOrdersId { get; set; }
        /// <summary>
        /// 工序ID
        /// </summary>
        public int ProcessId { get; set; }
        /// <summary>
        /// 工序编号
        /// </summary>
        public string ProcessCode { get; set; }
        /// <summary>
        /// 工序名称(压合、清洗、烘干、切割、收集、消毒、包装)
        /// </summary>
        public string? ProcessName { get; set; }
        /// <summary>
        /// 状态(0是启用1是禁用)
        /// </summary>
        public int State { get; set; }
        /// <summary>
        /// 工序说明
        /// </summary>
        public string ProcessDescription { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 逻辑删除
        /// </summary>
        public bool IsDel { get; set; }
    }
}
